package com.azier.kapacitor.script.node.nodebind;

import com.azier.kapacitor.script.node.Node;
import com.azier.kapacitor.script.node.StateCountNode;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public interface StateCountNodeBind extends Node {
    default StateCountNode stateCount(String lambda){
        StateCountNode nextNode = new StateCountNode(lambda);
        this.setNextNode(nextNode);
        nextNode.zetHeadNode(this.getHeadNode());
        return nextNode;
    }
}